<?php
/**
 * Table_Attachment
 *
 * @package Movoin Blog
 * @subpackage Table
 *
 */

//{{include
FLEA::loadClass ('FLEA_Db_TableDataGateway');
//}}

class Table_Attachment extends FLEA_Db_TableDataGateway {

    //数据表名称
    var $tableName = 'attachments';

    //数据表主键字段名
    var $primaryKey = 'attach_id';

    //定义从属关联
    var $beLongsTo = array(
        'tableClass' => 'table_posts',
        'mappingName' => 'posts',
        'fields' => 'title'
    );

}